<?php
/**
 * Created by PhpStorm.
 * User: Guan
 * Date: 2018/3/27
 * Time: 11:49
 */

namespace app\admin\model;


use think\Model;

class Banji extends Model
{


    /**
     * 获取所有的类别
     * @return array|mixed
     * @author: Huang
     */
    public function getAllQudao(){
        $data = Cache::tag('Banji')->get('Banjidata');
        if(!$data){
            $data=$this->column('banjiname','id');
            Cache::tag('Banji')->set('Banjidata',$data);
        }
        return $data;
    }
}